package com.ostrich.cloud.ostrichManagerWeb.client;

import com.ostrich.cloud.common.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.annotation.Resource;


@FeignClient(contextId = "userManagerClient",name = "ostrichManagerWeb")
@Api("用户管理相关接口")
public interface UserManagerClient {
    @GetMapping("getAllUser")
    @ApiOperation("查询全部用户接口")
    public Result getAllUser(@RequestParam("current") Integer current
            ,@RequestParam("size") Integer size,@RequestParam("status") String status);

    @PutMapping("putUser")
    @ApiOperation("修改用户信息接口")
    public Result updateUser(@RequestParam("parentId") Integer parentId
            ,@RequestParam("status") String status);
}
